<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>${systemName!"测试系统"}</title>
    <link rel="stylesheet" href="${contextPath}/plugins/layui/css/layui.css">
    <link rel="stylesheet" href="${contextPath}/css/common/common.css">
    <link rel="stylesheet" href="${contextPath}/plugins/module/theme/theme-green-dark.css">
    <link rel="stylesheet" href="${contextPath}/plugins/module/admin.css" media="all"/>
    <style>
        body {
            background-image: url("${contextPath}/images/common/bg/bg.png");
            background-position: center 110px;
            background-repeat: no-repeat;
            background-size: 100%;
            background-color: #f0f2f5;
        }
    </style>

    <!--其他插件css-->
    @if(isNotEmpty(plugins)){
    @if(array.contain(plugins,"ztree")){
    <link href="${contextPath}/plugins/ztree/zTreeStyle.css" rel="stylesheet" type="text/css" />
    @}
    @}

    @/* 加入contextPath属性和session超时的配置 */
    <script type="text/javascript">
        var system = {
            contextPath: "${contextPath}"
        };
    </script>
    @/* js和业务用的js数组 */
    <script type="text/javascript" src="${contextPath}/plugins/layui/layui.js"></script>
    <script src="${contextPath}/plugins/jquery/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" src="${contextPath}/js/common/util.js"></script>
    @/* 包含页使用的css */
    @if(isNotEmpty(css)){
    @for(item in css){
    @if(strutil.startWith(item,"/")){
    @item = contextPath + item;
    @}
    <link href="${item}" rel="stylesheet" type="text/css" />
    @}
    @}
</head>
<body>

@/* 正文 */
${layoutContent}

<!--其他插件js-->
@if(isNotEmpty(plugins)){
@if(array.contain(plugins,"ztree")){
<script src="${contextPath}/plugins/jquery/jquery-3.2.1.min.js"></script>
<script src="${contextPath}/plugins/ztree/jquery.ztree.all.min.js"></script>
@}
@if(array.contain(plugins,"echarts")){
<script src="${contextPath}/plugins/jquery/jquery-3.2.1.min.js"></script>
<script src="${contextPath}/plugins/echarts/echarts.min.js"></script>
@}
@}

@if(isNotEmpty(js)){
@for(item in js){
@if(strutil.startWith(item,"/")){
@item = contextPath + item;
@}
<script src="${item}"></script>
@}
@}
</body>
</html>